package com.hjrpc.babyyamall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hjrpc.babyyamall.product.vo.Catalog2Vo;
import com.hjrpc.common.utils.PageUtils;
import com.hjrpc.babyyamall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author hujian
 * @email 502361472@qq.com
 * @date 2021-08-07 12:54:21
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    Long[] findCatelogPath(Long catelogId);

    List<CategoryEntity> getLevel1Catagories();

    Map<String, List<Catalog2Vo>> getCatalogMap();

    void testRead();

    void testWrite();

    void updateCategoryById(CategoryEntity category);
}

